import request from '@/utils/request'


//若依生成js少了/service-ry 前缀
// 查询趋势分析信息列表
export function listTrendAnalyses(query) {
  return request({
    url: '/service-ry/trend/trendAnalyses/list',
    method: 'get',
    params: query
  })
}

// 查询趋势分析信息详细
export function getTrendAnalyses(id) {
  return request({
    url: '/service-ry/trend/trendAnalyses/' + id,
    method: 'get'
  })
}

// 新增趋势分析信息
export function addTrendAnalyses(data) {
  return request({
    url: '/service-ry/trend/trendAnalyses',
    method: 'post',
    data: data
  })
}

// 修改趋势分析信息
export function updateTrendAnalyses(data) {
  return request({
    url: '/service-ry/trend/trendAnalyses',
    method: 'put',
    data: data
  })
}

// 删除趋势分析信息
export function delTrendAnalyses(id) {
  return request({
    url: '/service-ry/trend/trendAnalyses/' + id,
    method: 'delete'
  })
}

// 导出趋势分析信息
export function exportTrendAnalyses(query) {
  return request({
    url: '/service-ry/trend/trendAnalyses/export',
    method: 'get',
    params: query
  })
}

//获取最新数据
export function getlistTrendAnalyNewData() {
  return request({
     url: '/service-ry/trend/trendAnalyses/latestList',
    method: 'get',
    // headers:{
    //  isToken:false 
    // }
  })
}

//返回趋势分析
export function getlistDataChangeRate() {
  return request({
     url: '/service-ry/trend/trendAnalyses/dataChangeRate',
    method: 'get',
    // headers:{
    //  isToken:false 
    // }
  })
}